<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link href="/styles/general.css" rel="stylesheet" type="text/css" />
<link href="/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/styles/validator.css" rel="stylesheet" type="text/css" />
<script src="/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/js/formValidator.js" type="text/javascript"></script>
<script src="/js/formValidatorRegex.js" type="text/javascript"></script>
</head>
<body>

<h1>
<span class="action-span"><a href="/status/index/">管理状态</a></span>
<span class="action-span1"><a href="/index/main/">管理中心</a> </span><span id="search_id" class="action-span1"> - 编辑状态 </span>
<div style="clear:both"></div>
</h1>
<div class="main-div">
  <form action="/status/edit/" method="post" name="myform" id="myform" enctype="multipart/form-data">
  <table width="100%" id="general-table">
    <caption><strong>编辑稿件状态</strong></caption>
      <tr>
        <td class="label">状态值:</td>
        <td>
          <select name="info[status]" size="1" <!--{if (1==$info['issystem'])}--> DISABLED<!--{/if}-->>
            <!--{loop $listunused $k $v}-->
            <option value="$v" <!--{if ($v==$status)}--> selected<!--{/if}-->>$v</option>
            <!--{/loop}-->
          </select> <font color="red">*</font>
          <input type="hidden" name="status" value="$status">
        </td>
      </tr>
      <tr>
        <td class="label">状态名称:</td>
        <td>
          <input name="info[name]" id="info_name" type="text" value="$info['name']" size="20" maxlength="40" minlength="2" <!--{if (1==$info['issystem'])}--> DISABLED<!--{/if}-->> <font color="red">*</font> <div id="info_nameTip" style="width:250px"></div>
        </td>
      </tr>
      <tr>
        <td class="label">状态描述:</td>
        <td>
          <TEXTAREA NAME="info[description]" id="info_description" ROWS="10" COLS="40" <!--{if (1==$info['issystem'])}--> DISABLED<!--{/if}-->>$info['description']</TEXTAREA> <div id="info_descriptionTip" style="width:250px"></div>
        </td>
      </tr>
  </table>
      <div class="button-div">
        <input type="Submit" name="dosubmit" id="dosubmit" value=" 确定 " <!--{if (1==$info['issystem'])}--> DISABLED<!--{/if}-->> 
        &nbsp; <input type="reset" name="reset" value=" 清除 " <!--{if (1==$info['issystem'])}--> DISABLED<!--{/if}-->>
      </div>
    <input type="hidden" name="forward" value="/status/index/">
  </form>
</div>

<div id="footer">
版权所有 &copy; 2009-2010 江苏有线数据公司，并保留所有权利。</div>
</body>
</html>
<script language="javascript" type="text/javascript">
$().ready(function() {
    $.formValidator.initConfig({formid:"myform",onerror:function(msg){alert(msg)}});
    $("#info_name").formValidator({onshow:"请输入状态名称",onfocus:"请输入2-40个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:2,onerror:"你输入的状态名称长度不正确,请确认"});
    $("#info_description").formValidator({onshow:"请输入状态描述",onfocus:"最多可输入200个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({max:200,onerror:"你输入的状态描述长度不正确,请确认"});
});
</script>